$def with(news)
$var title: 新鲜事
$var gmap: 1

<h1>最新事件</h1>
<div class="left_side">
    <div id="news">
        <ul style="width:100%">
        $for i in news:
            <li>
                <div class="avt">
                    <a href="profile?uid=$i['uid']"><img src="$i['tiny_avatar']"/></a>
                </div>
                <div class="avn">
                    <a href="profile?uid=$i['uid']">$i['nickname']</a>
                    $if i['type'] == 0:
                        于 $i['atime'] 加入，欢迎
                    $elif i['type'] == 1:
                        上传头像
                        <img src="$i['tiny_avatar']"/> 
                    $elif i['type'] == 2:
                        创建活动
                        <a href="activity?aid=$i['aid']">$i['subject']</a>
                    $elif i['type'] == 3:
                        $if i['relation'] == 0:
                            对
                            <a href="activity?aid=$i['aid']">$i['subject']</a>
                            感兴趣
                        $elif i['relation'] == 1:
                            要参加
                            <a href="activity?aid=$i['aid']">$i['subject']</a>
                        $else:
                            relation error
                    $elif i['type'] == 4:
                        在活动
                        <a href="activity?aid=$i['aid']">$i['act_subject']</a>
                        发表话题
                        <a href="discuss_show?tid=$i['tid']&aid=$i['aid']">$i['th_subject']</a>
                    $elif i['type'] == 5:
                        在活动
                        <a href="activity?aid=$i['aid']">$i['act_subject']</a>
                        回复话题
                        <a href="discuss_show?tid=$i['tid']&aid=$i['aid']">$i['th_subject']</a>
                    $else:
                        i['type']
                        news error
                </div>
             </li>
        </ul>
    </div>
</div>
<div class="right_side">
</div>
